<?php
/* http://programarenphp.wordpress.com */
/* incluimos primeramente el archivo que contiene la clase fpdf */
include ('../../../mpdf/mpdf.php');
require '../../conexionBD/cecndb.php';
$id=$_GET['id'];
$SQLstr = "CALL reporteSP('".$id."')";
$EjecutaCSQL = $conectarBD->query($SQLstr);
echo $SQLstr;
while ($registros = $EjecutaCSQL->fetch_row())
    {    
    	$vCOBO=$registros[0];
        $vFEBO=$registros[1];
        $vCOAC=$registros[2];
        $vCOTP=$registros[3];
    	$vCOPR=$registros[4];
        $vCACP=$registros[5];
    }
 $conectarBD->close();
$mpdf=new mPDF('win-1252','LETTER','','',15,15,25,12,5,7);
$header='<table align="center" cellpadding="1" cellspacing="1" style="width: 900px;">
			<tbody>
				<tr>
					<td>
						<img align="right" alt="" <img src="'.'img/logo-universidad-nacional.gif"/> style="width: 112px; height: 90px; float: right;" /></td>
					<td style="text-align: center;">
						<h2>
							<span style=""><font><font><font><font><font><font><font><font><font><font><font><font><font><font>Universidad Nacional de Costa Rica</font></font></font></font></font></font></font></font></font></font></font></font></font></font></span></h2>
						<p>
							<span style=""><font><font><font><font><font><font><font><font><font><font><font><font><font><font>&nbsp;&quot;REGI&Oacute;N CHOROTEGA&quot;</font></font></font></font></font></font></font></font></font></font></font></font></font></font></span></p>
						<p>
							<span style=""><font><font><font><font><font><font><font><font><font><font><font><font><font><font>&quot;CAMPUS NICOYA&quot;</font></font></font></font></font></font></font></font></font></font></font></font></font></font></span></p>
					</td>
					<td>
						<img alt="" <img src="'.'img/logo_campus.jpg"/> style="width: 59px; height: 90px;" /></td>
				</tr>
			</tbody>
		</table> <hr />';
$html='<html>
		
      <p>&nbsp;</p>

<table align="right" border="0" bordercolor="#ccc" cellpadding="5" cellspacing="0" style="border-collapse:collapse">
	<tbody>
		<tr>
			<td>&nbsp;</td>
			<td>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</td>
			<td>
			<p><big><strong>C&oacute;digo de boleta:</strong> '.$vCOBO.'</big></p>

			<p><big><strong>Fecha de registro:</strong> '.$vFEBO.'</big></p>
			</td>
		</tr>
	</tbody>
</table>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p style="font-style: italic;"><cite><span dir="rtl"><kbd><tt><small><code><big><strong>Nombre acad&eacute;mico(a):</strong> '.$vCOAC.'</big></code></small></tt></kbd></span></cite></p>

<p style="font-style: italic;"><cite><span dir="rtl"><kbd><tt><small><code><big><strong>Curso-proyecto:</strong> '.$vCOPR.'</big></code></small></tt></kbd></span></cite></p>

<p style="font-style: italic;"><cite><span dir="rtl"><kbd><tt><small><code><big><strong>Tipo de documento:</strong> '.$vCOTP.'</big></code></small></tt></kbd></span></cite></p>

<p style="font-style: italic;"><cite><span dir="rtl"><kbd><tt><small><code><big><strong>Cantidas de c&oacute;pias:</strong> '.$vCACP.'</big></code></small></tt></kbd></span></cite></p>

        
        
        
        
		</html>';
$mpdf->SetHTMLHeader($header);
$mpdf->WriteHTML($html);
$mpdf->SetFooter(' {DATE j/m/Y}|Página {PAGENO}/{nbpg}|Universidad Nacional de Costa Rica');
$mpdf->Output();
exit;
?>
